package com.codeoss.framework.view.renderer;

import org.springframework.stereotype.Service;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.view.component.Component;
import com.codeoss.framework.view.component.WebSocketComponent;

@Service("websocketRenderer")
public class WebSocketRenderer extends CommonComponentRenderer {
	protected void startRenderView(YunContext yunContext, Component component, ViewSerializeMap viewSerializeMap) {
		super.startRenderView(yunContext, component, viewSerializeMap);
		WebSocketComponent webSocketComponent=(WebSocketComponent)component;
		viewSerializeMap.put("connectionString", webSocketComponent.getConnectionString());
	}
}
